import { get } from "../utils/request";
/*
获取商品分类列表
page:页码
per:每一页显示的商品数量
category:分类id
*/
export const loadProductsAPI = (page = 1, per = 15, category) =>
  get("/api/v1/products", { page, per, category });

/**
 * 根据id获取详情
 */
export const loadProductDetailAPI = (id) => get("/api/v1/products/" + id);
